import { createApp } from 'vue';
import './style.css';
import App from './App.vue';
import {router} from "./route";
import ElementPlus from 'element-plus';
import "element-plus/dist/index.css";

import './style/index.scss';
import {createPinia} from "pinia";
// 持久化 store 状态插件 PiniaPersistedState
// 保持在浏览器的本地存储中，直到清除浏览器缓存
import PiniaPersistedState from 'pinia-plugin-persistedstate';
const pinia = createPinia();
const app = createApp(App);

pinia.use(PiniaPersistedState);
app.use(pinia);
app.use(router);
app.use(ElementPlus);
app.mount('#app');


